package zigzag.designpattern.chain;

public class FileLogger extends Logger{

	protected void writeMessage(int priority, String msg) {
		if (priority == Logger.DEBUG){
			System.out.println("File:" + msg);
		}else if (next!=null){
			next.writeMessage(priority, msg);
		}
		
	}
};